package com.qt.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.qt.pojo.entity.problem.Problem;
import com.qt.pojo.vo.ProblemInfoVO;
import com.qt.pojo.vo.ProblemVO;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @author pgw
 * @version 1.0
 * @description
 * @date Create by 2023/9/23 20:39
 */
@Mapper
public interface ProblemMapper extends BaseMapper<Problem> {
    List<ProblemVO> getProblemList(@Param("currentPage") Long currentPage,
                                   @Param("pageSize") Long pageSize,
                                   @Param("oj") String oj,@Param("difficulty") Integer difficulty,
                                   @Param("keyword") String keyword ,
                                   @Param("tagIds") List<Long> tagIds,
                                   @Param("tagListSize") Integer tagListSize);

    ProblemInfoVO getProblemDetail(@Param("id") Long id);
}
